public class Dog {
    String name;
    int age;
    String color;

    public Dog(){
        System.out.println("默认构造函数");
    }

    public Dog(String name){
        this.name = name;
        System.out.println("自定义构造函数");
    }

    void eatting(){
        System.out.println("开吃了!");
    }

    void running(){
        System.out.println("跑路了!");
    }

}

